#include<stdio.h>
#include<unistd.h>
#include <pthread.h>
/*
This is thread test, pid=32559, tid=139883729372736
This is thread test, pid=32559, tid=139883737765440
This is thread test, pid=32559, tid=139883720980032
This is thread test, pid=32559, tid=139883695801920
This is thread test, pid=32559, tid=139883746158144
This is thread test, pid=32559, tid=139883754550848
This is thread test, pid=32559, tid=139883712587328
This is thread test, pid=32559, tid=139883704194624
This is thread test, pid=32559, tid=139883687409216
This is thread test, pid=32559, tid=139883679016512

 */

void * testThread(void * arg){
	printf("This is thread test, pid=%d, tid=%lu\n", getpid(), pthread_self());
	pthread_exit(NULL);
}

int main(){
	pthread_t tid[10];
	int ret;
	int i;
	for(i = 0; i < 10; i++){
		ret = pthread_create(&tid[i], NULL, testThread, NULL);
	}
	sleep(1);
}
